package com.wish.contract.feign;

import com.wish.dto.contract.ConsumerDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("contract-consumer")
public interface ConsumerFeign {

    @RequestMapping("/consumer/list")
    public List<ConsumerDto> list(@RequestParam Integer type);


    @RequestMapping("/consumer/ByNameGetConsumer")
    public List<ConsumerDto> ByNameGetConsumer(@RequestParam String name,@RequestParam Integer type);
}
